﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace curriculum_design.Model
{
    public class ResultClass
    {
        [Key]
        public int ResultId { get; set; }//主键
        [Display(Name = "二次电压（U)")]
        public double sec_voltage { get; set; }//二次电压
        public double ao_f { get; set; }//f%
        public double bo_f {  get; set; }
        public double co_f { get; set; }

        public double ao_d { get; set; }//d
        public double bo_d { get; set; }
        public double co_d { get; set; }

        public double ao_du { get; set; }//dU%
        public double bo_du { get; set; }
        public double co_du { get; set; }

        public double ao_Upt { get; set; }//Upt:U
        public double bo_Upt { get; set; }
        public double co_Upt { get; set; }

        public double ao_Uyb { get; set; }//Uyb:U
        public double bo_Uyb { get; set; }
        public double co_Uyb { get; set; }
        [Display(Name = "r（%)")]
        public double r_persentage { get; set; }//r%


        public int TestId { get; set; }//测试id,外键
         // 导航属性，表示与Test实体之间的关系
        [ForeignKey("TestId")]
        public TestItem? Test { get; set; }//一个测试项目对应一个结果

    }
}
